export const factory = (roomKey) => {
    if (Game.rooms[roomKey].controller.level >= 7) {
        const factory = Game.rooms[roomKey].find(FIND_STRUCTURES, {filter: {structureType: STRUCTURE_FACTORY}})
        factory[0].produce(RESOURCE_ZYNTHIUM_BAR)
    }
}